package com.company.project.common.pojo;

import java.io.Serializable;

public class AjaxResult implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 5952861126789622536L;
	
	private String resultCode;
	private String resultCodeDesc;
	private Object result;
    
    public AjaxResult() {
		super();
	}
    
	public AjaxResult(String resultCode) {
		super();
		this.resultCode = resultCode;
	}

	public AjaxResult(String resultCode, String resultCodeDesc) {
		super();
		this.resultCode = resultCode;
		this.resultCodeDesc = resultCodeDesc;
	}

	public AjaxResult(String resultCode, String resultCodeDesc, Object result) {
		super();
		this.resultCode = resultCode;
		this.resultCodeDesc = resultCodeDesc;
		this.result = result;
	}

	public String getResultCodeDesc() {
		if(resultCodeDesc == null) {
			resultCodeDesc = "无回复说明！";
		}
        return resultCodeDesc;
    }

    public void setResultCodeDesc(String resultCodeDesc) {
        this.resultCodeDesc = resultCodeDesc;
    }

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }
}

	
